package com.mayikt.product.api.service;

import com.mayikt.base.BaseResponse;
import com.mayikt.goods.output.dto.ProductDTO;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Api(tags = "ProductSearchService",description = "商品搜索服务")
public interface ProductSearchService {
    @GetMapping("/search")
    BaseResponse<List<ProductDTO>> search(@RequestParam(value = "name",required = true) String name);
}
